package com.xy.biz.mes.domain.enums;

import com.xy.lang.enums.CodeEnum;

/**
 * 状态：0-已取消，10-待生产，20-生产中，30-已记录，40-已复核，50-已交付
 */
public enum ManufactureTaskStatusEnum implements CodeEnum {
    CANCELED(0, "已取消"),
    PENDING_MANUFACTURE(10, "待生产"),
    MANUFACTURING(20, "生产中"),
    RECORDED(30, "已记录"),
    REVIEWED(40, "已复核"),
    HAND_OVER(50, "已交付");

    private int code;
    private String name;

    ManufactureTaskStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
